[Top] [Prev] [Next] [Bottom] [Contents]

SaGetCancelStatus

This function can be used to determine if the last request was cancelled through the Cancel box, or in the Login screen.

Synopsis

#include "SaPopCalls.h"
int SaGetCancelStatus();

Arguments

None.

Return Values

An integer value indicating whether the last request was cancelled.

Description

SaGetCancelStatus can be used to determine if the last request was cancelled through the Cancel box, or in the Login screen. A value of 1 indicates that a cancel occurred; 0 indicates otherwise. This function is useful to break out of loops; set it up with initial and final code as shown in the example below.

Example

int i, NumInserts;
for (i= 0; i<NumInserts; i++)
{
/** Sapphire/Web code to run insert Stored Procedure or DSQL **/
if (SaGetCancelStatus())
	break;
}

See Also



[Top] [Prev] [Next] [Bottom] [Contents]

info@bluestone.com
Copyright © 1997, Bluestone. All rights reserved.